<?php
declare (strict_types = 1);

namespace app\middleware;

class check
{
    /**
     * 处理请求
     *
     * @param \think\Request $request
     * @param \Closure       $next
     * @return Response
     */
    public function handle($request, \Closure $next)
    {
           if(Request()->pathinfo() =='index/login'){
			   
			   // return redirect('/index/user');
		   }
        
                return $next($request);
    }
}
